fname = input("输入文件名称：")
tf = open(fname,"r",encoding='utf-8')
txt = tf.read()
print(txt)
tf.close()